package ua.lviv.franko.integration;

/**
 * @author marko.bekhta
 * 
 */
public class ConstantFunction2D implements IFunction2D {
	private double	value;

	public ConstantFunction2D(double value) {
		super();
		this.value = value;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see ua.lviv.franko.integration.IFunction2D#calculate(double, double)
	 */
	@Override
	public double calculate(double x, double y) {
		return value;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see ua.lviv.franko.integration.IFunction2D#calculateDerivatyX(double, double)
	 */
	@Override
	public double calculateDerivatyX(double x, double y) {
		return 0;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see ua.lviv.franko.integration.IFunction2D#calculateDerivatyY(double, double)
	 */
	@Override
	public double calculateDerivatyY(double x, double y) {
		return 0;
	}

}
